package com.cloudauth.authclienta.controller;

import com.cloudauth.authclienta.service.AuthRequestBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AController {

    @Autowired
    private AuthRequestBService authRequestBService;

    @GetMapping(path = "/test-a")
    public String test(@RequestParam(name = "str") String str){
        return "test-a" + str;
    }


    @GetMapping(path = "/test-a-b")
    public String testAB(@RequestParam(name = "str")String str){
        return authRequestBService.testB(str);
    }
}
